package com.kk.mediator.smarthouse;

/**
 * 闹钟
 *
 * @author o_o
 * @date 2022-06-16
 */
public class AlarmClock extends Colleague {


    public AlarmClock(Mediator mediator, String name) {
        super(mediator, name);
    }


    @Override
    public void sendMessage(int stateChange) {
        this.getMediator().getMessage(stateChange, this.name);
    }

    public void startAlarmClock() {
        System.out.println("开闹钟");
    }

    public void stopAlarmClock() {
        System.out.println("关闹钟");
    }
}
